<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/9
 * Time: 9:34
 */

namespace backend\modules\mdm\controllers;



use common\business\mdm\MdmService;
use common\models\Department;
use yii\base\Controller;

class MdmController extends Controller
{
    public function actionTest(){
        $dept = Department::findOne(['number' => 'STEC006']);
        $service = new MdmService();
        $service->createOrUpdateDepartment($dept);
    }
}